package com.whfc.common.face.fcr.enums;

/**
 * @author sun_guodong
 * @description 同步种类
 * @date 2020-09-11
 */
public enum FcrOp {

    DOOR("door", "设备同步"),

    EMP("user", "人员同步"),

    PASS_RECORD("passrecord", "通行记录同步"),

    DEL_EMP("del_user", "删除人员");

    private String value;

    private String desc;

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    FcrOp(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static FcrOp parseValue(String value) {
        switch (value) {
            case "user":
                return EMP;
            case "passrecord":
                return PASS_RECORD;
            case "door":
                return DOOR;
            case "del_user":
                return DEL_EMP;
            default:
                return null;
        }
    }
}
